package cn.wolfcode.service.impl;

import cn.wolfcode.domain.VoteItem;
import cn.wolfcode.mapper.VoteItemMapper;
import cn.wolfcode.qo.QueryObject;
import cn.wolfcode.service.IVoteItemService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VoteItemServiceImpl implements IVoteItemService {

    @Autowired
    private VoteItemMapper voteItemMapper;




    @Override
    public List<VoteItem> listAll() {
        return voteItemMapper.selectAll();
    }

    @Override
    public List<VoteItem> selectVote(Long voteId) {
        List<VoteItem> voteItems = voteItemMapper.selectVote(voteId);
        return voteItems;
    }


}
